﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Engine.SceneControl.Scene;
using Engine.Cameras;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Engine;

namespace Etapa1.Screens
{
    public  class ReflectionMapTechnic : IRenderTechnic
    {
        #region IRenderTechnic Members

        private EngineStuff engine;

        public void ExecuteTechnic(IRender render, Engine.SceneControl.IWorld world)
        {
            render.SetUpRenderTarget(Engine.SceneControl.Scene.RenderTarget.TEXTURE2D, RenderType.NORMALSCENE);            
            render.RenderScene("ReflectionMap", CameraManager.RENDERTARGETCAMERA);        
        }

        #endregion

        #region IRenderTechnic Members

        public void Initialization(Engine.SceneControl.IWorld world,EngineStuff engine)
        {
            this.engine = engine;
            StaticCamera c = new StaticCamera(new Vector3(50, 500, 50), new Vector3(0, 0, 0));
            world.AddCamera(CameraManager.RENDERTARGETCAMERA, c);
        }

        #endregion



        public string TechnicName
        {
            get { return "ReflectionMap"; }
        }

        
    }
}
